package com.cheng.example.geektime.designpatterns.j56.apply;


/**
 * 通知观察者
 */
public class RegNotificationObserver implements RegObserver {

    private RegNotificationService regNotificationService = new RegNotificationService();

    @Override
    public void handleRegSuccess(long userId) {
        regNotificationService.sendInboxMessage(userId,"Welcome...");
    }
}
